package GUI;

import java.awt.SystemColor;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Startbildschirm extends JPanel {

	/**
	 * @throws IOException
	 * @wbp.parser.entryPoint
	 */
	public static void starte() throws IOException {

		Start.panel_Start.setForeground(SystemColor.menu);
		Start.panel_Start.setBounds(146, 0, 875, 650);
		Start.panel_Start.setLayout(null);
		Start.frame.getContentPane().add(Start.panel_Start);

		BufferedImage myPicture;
		try {
			myPicture = ImageIO.read(new File(
					"src\\GUI\\ImmoVorndamme_Picture.JPG"));

			JLabel picLabel = new JLabel(new ImageIcon(myPicture));
			picLabel.setBounds(146, 0, 900, 580);
			picLabel.setVisible(true);
			Start.panel_Start.add(picLabel);
		} catch (IOException e) {

			e.printStackTrace();
			System.out.println("" + e);
		}

		BufferedImage myLogo;
		try {
			myLogo = ImageIO.read(new File("src\\GUI\\logo.png"));

			JLabel picLogo = new JLabel(new ImageIcon(myLogo));
			picLogo.setBounds(5, 500, 114, 94);
			Start.frame.getContentPane().add(picLogo);

		} catch (IOException e) {

			e.printStackTrace();
			System.out.println("" + e);
		}

		Start.panel_Start.setVisible(true);

		;

	}

}
